# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class PipelineInstance(object):

    def __init__(self, uuid=None, startedAt=None, doneAt=None, durationMs=None, status=None, statusHuman=None, env=None, failureReason=None, falseilureReasonHuman=None, stages=None):
        """
        :param uuid: (Optional) 某一次流水线执行的uuid
        :param startedAt: (Optional) 开始执行流水线的时间
        :param doneAt: (Optional) 结束执行流水线的时间
        :param durationMs: (Optional) 执行持续的时间(ms)
        :param status: (Optional) 执行状态
        :param statusHuman: (Optional) 执行状态描述
        :param env: (Optional) 执行时环境变量
        :param failureReason: (Optional) 失败原因
        :param falseilureReasonHuman: (Optional) 失败原因描述
        :param stages: (Optional) 
        """

        self.uuid = uuid
        self.startedAt = startedAt
        self.doneAt = doneAt
        self.durationMs = durationMs
        self.status = status
        self.statusHuman = statusHuman
        self.env = env
        self.failureReason = failureReason
        self.falseilureReasonHuman = falseilureReasonHuman
        self.stages = stages
